<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?>

<?php 
$ci = & get_instance();
$ci->load->library('country_city');

?>

	<div class="clrboth"></div>
	
	<div class="row" id="booking_zone">
		<?php 
			$booking = $items['booking'];
			$bid = $items['bid'];
			$SHOW = $items['show'];
			$USER_BID = $ci->user_entity->init('acc_code', $bid->getAccountCode());
			$bidStatus = bidStatusDataConfig();
			
			$i = 1;
			foreach($booking as $item_obj):
		?>
		<?php 
			$book = $this->booking_entity->init('id',$item_obj->id);
			$style= $i > 1 ? 'style="margin-top:25px;"' : '';
		?>
		<div class="clrboth"></div>
		<div class="column grid_9 items" id="id_<?php echo $i;?>" <?php echo $style;?> >
			<div class="column grid_2">Booking for:</div>
			<div class="column grid_6" id="zone_slb">
				<?php 
					$options = countryZoneDataConfig();
					echo $options[$book->getBookingFor()];
				?>
			</div>
			<div class="clrboth"></div>
			
			<div class="column grid_2">Country:</div>
			<div class="column grid_6" id="country_slb">
				<?php 
					$country_records = $ci->country_city->getCountryRecordsBy_zonecode($book->getBookingFor());
					$options = array();
					foreach($country_records as $record){
						$options[$record->id] = $record->name;
					}
					echo $options[$book->getCountry()];
				?>
			</div>
			<div class="clrboth"></div>
			
			<div class="column grid_2">City:</div>
			<div class="column grid_6" id="city_slb">
				<?php 
					$city_records = $ci->country_city->getCityRecordsBy_countryid($book->getCountry());
					$options = array();
					foreach($city_records as $record){
						$options[$record->id] = $record->name;
					}
					
					echo $options[$book->getCity()];
				?>
			</div>
			
			<div class="clrboth"></div>
			
			<div class="column grid_2">
				Venue:
			</div>
			<div class="column grid_6">
				<?php echo $book->getVenue();?>
			</div>
			
			<div class="clrboth"></div>
		
			<div class="column grid_2">
				Address:
			</div>
			<div class="column grid_6">
				<?php echo $book->getAddress();?>
			</div>
				
			<div class="clrboth"></div>
			
			<div class="column grid_2">
				Capacity:
			</div>
			<div class="column grid_6">
				<?php echo $book->getCapacity();?>
			</div>
				
			<div class="clrboth"></div>
			
			<div class="column grid_2">
				Ticket Pricing:
			</div>
			<div class="column grid_6">
				<?php echo $book->getTicketPrice();?>
			</div>
				
			<div class="clrboth"></div>
			
			<div class="column grid_2">
				Potential Sponsors:
			</div>
			<div class="column grid_6">
				<?php echo $book->getPotentialSponsors();?>
			</div>
			
			<?php if($i >1) :?>
				<div class="clrboth"></div>
	
				<div class="column grid_2">
					&nbsp;
				</div>
				<div class="column grid_6">
					
				</div>
			<?php endif;?>	
			<div class="clrboth"></div>
			
		</div>
			<?php $i++;?>
		<?php endforeach;?>	
		<div class="clrboth"></div>
	</div>
	
	<div class="clrboth"></div>
	
	<div class="row">	
		
		<div class="clrboth"></div>
	
		<div class="column grid_9">	
			<div class="clrboth"></div>	
			
			<div class="column grid_2">
				Offer Price:
			</div>
			<div class="column grid_6">
				<?php echo $bid->getOfferPrice();?>&nbsp;&nbsp; USD
			</div>
				
			<div class="clrboth"></div>
			
			<div class="column grid_2">
				Promoter History:
			</div>
			<div class="column grid_6">
				<table cellspacing="3">
					<thead>
						<td width="150px" class="bold">Artist/Production</td>
						<td width="70px" class="bold">Year</td>
						<td width="150px" class="bold">Capacity</td>
						<td width="100px" class="bold">Venue</td>
					</thead>
					<tbody>
						<tr>
							<td><?php echo $bid->getArtistProduction1();?></td>
							<td><?php echo $bid->getYear1();?></td>
							<td><?php echo $bid->getCapacity1();?></td>
							<td><?php echo $bid->getVenue1();?></td>
						</tr>
						
						<tr>
							<td><?php echo $bid->getArtistProduction2();?></td>
							<td><?php echo $bid->getYear2();?></td>
							<td><?php echo $bid->getCapacity2();?></td>
							<td><?php echo $bid->getVenue2();?></td>
						</tr>
						
						<tr>
							<td><?php echo $bid->getArtistProduction3();?></td>
							<td><?php echo $bid->getYear3();?></td>
							<td><?php echo $bid->getCapacity3();?></td>
							<td><?php echo $bid->getVenue3();?></td>
						</tr>
						
						<tr>
							<td><?php echo $bid->getArtistProduction4();?></td>
							<td><?php echo $bid->getYear4();?></td>
							<td><?php echo $bid->getCapacity4();?></td>
							<td><?php echo $bid->getVenue4();?></td>
						</tr>
					</tbody>
				</table>
			</div>
				
			<div class="clrboth"></div>
			
		</div>
		<div class="clrboth"></div>
	</div>
<div class="clrboth"></div>

